<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>商家登录</title>
<!-- CSS 
    ========================= -->
<!--bootstrap min css-->
<link rel="stylesheet"
	href="https://www.jq22.com/jquery/bootstrap-4.2.1.css">
<!--owl carousel min css-->
<link rel="stylesheet" href="assets/css/owl.carousel.min.css">
<!--slick min css-->
<link rel="stylesheet" href="assets/css/slick.css">
<!--magnific popup min css-->
<link rel="stylesheet" href="assets/css/magnific-popup.css">
<!--font awesome css-->
<link rel="stylesheet"
	href="https://www.jq22.com/jquery/font-awesome.4.7.0.css">
<!--ionicons css-->
<link rel="stylesheet" href="assets/css/ionicons.min.css">
<!--linearicons css-->
<link rel="stylesheet" href="assets/css/linearicons.css">
<!--animate css-->
<link rel="stylesheet" href="assets/css/animate.css">
<!--jquery ui min css-->
<link rel="stylesheet" href="assets/css/jquery-ui.min.css">
<!--slinky menu css-->
<link rel="stylesheet" href="assets/css/slinky.menu.css">
<!--plugins css-->
<link rel="stylesheet" href="assets/css/plugins.css">

<!-- Main Style CSS -->
<link rel="stylesheet" href="assets/css/style.css">

<!--modernizr min js here-->
<script src="assets/js/vendor/modernizr-3.7.1.min.js"></script>
<script src="js/jquery-2.0.3.js"></script>
<script src="js/jquery.cookie.js"></script>
</head>
<body>
	<jsp:include page="head.jsp"></jsp:include>
	<!--header area end-->

	<!--breadcrumbs area start-->
	<div class="breadcrumbs_area">
		<div class="container">
			<div class="row">
				<div class="col-12">
					<div class="breadcrumb_content">
						<h3>商家登入界面</h3>
						<ul>
							<li><a href="index.html">首页</a></li>
							<li>商家登入界面</li>
						</ul>
					</div>
				</div>
			</div>
		</div>
	</div>
	<!--breadcrumbs area end-->

	<!-- customer login start -->
	<div class="customer_login">
		<div class="container">
			<div class="row">
				<!--login area start-->
				<div class="col-lg-6 col-md-6" style="margin-left: 300px;">
					<div class="account_form">
						<h2>登入</h2>
						<%=request.getAttribute("msg") == null ? "" : request.getAttribute("msg")%>
						<form action="StoreServlet" method="post">
							<p>
								<label>账户<span>*</span></label> <input type="text"
									id="storename" name="storename" required="required">
							</p>
							<p>
								<label>密码 <span>*</span></label> <input type="password"
									id="storepwd" name="storepwd" required="required">
							</p>
							<div class="login_submit">
								<a href="#">忘记密码?</a> <label for="remember"> <input
									type="hidden" name="op" value="login" /> <input id="remember"
									name="remember" type="checkbox"> 记住密码
								</label>
								<button type="submit">登入</button>

							</div>

						</form>
					</div>
				</div>
				<br />
				<!--login area start-->

				<!--footer area start-->
				<script>
					$(function() {
						//("#storename").blur 文本框失去焦点事件
						$("#storename").blur(function() {
							//读取用户名和密码的cookie信息
							var storename = $.cookie('storename');
							var storepwd = $.cookie('storepwd');
							 console.log(storepwd);
							 //如果用户输入的用户名 和 读取用户名一致
							 if($(this).val() == storename)
							  {
							     //就将密码显示在密码框中
							     $("#storepwd").val(storepwd);
							  }
						});
					});
				</script>
				<jsp:include page="footer.jsp"></jsp:include>
</body>
</html>